﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrators/Admin.Master" AutoEventWireup="true" CodeBehind="QuanLyVanBan.aspx.cs" Inherits="CongThongTin.Administrators.QuanLyVanBan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" runat="server" 
    contentplaceholderid="ContentPlaceHolder_rightContent">
    
    <asp:ScriptManager ID="myScriptManager" runat="server" EnablePageMethods="true"></asp:ScriptManager>

    <script src="js/jquery-1.5.min.js" type="text/javascript"></script>
    <script type="text/javascript">

        function themMoiTheLoai() {

            var tenTheLoai = $('#<%= txtTen.ClientID  %>').val();
            PageMethods.themMoiTL(tenTheLoai, onSucess, onError);

            function onSucess(result) {
                alert(result);
            }
            function onError(result) {
                alert('Xin xem lại dữ liệu nhập.');
            }
        }

        function showVanBan() {
            $('#divVanBan').show();
            $('#divLoaiVanBan').hide();
            $('#divTheLoaiVanBan').hide(); 
        }
        function showLoaiVanBan() {
            $('#divVanBan').hide();
            $('#divLoaiVanBan').show();
            $('#divTheLoaiVanBan').hide();
        }
        function showTheLoaiVanBan() {
            $('#divVanBan').hide();
            $('#divLoaiVanBan').hide();
            $('#divTheLoaiVanBan').show();
        }
        $(document).ready(function () {
            $('#divLoaiVanBan').hide();
            $('#divVanBan').hide();
            $('#divTheLoaiVanBan').hide(); 
        });
    </script>

    <h3>
    Trang chủ</h3>


<div class="shortcutHome">
    <a href="#"   onclick="showVanBan()"> 
    <img src="mos-css/img/posting.png" "><br>Văn bản</a>
</div>
<div class="shortcutHome">
    <a href="#" onclick="showLoaiVanBan()">
    <img src="mos-css/img/template.png"><br>Loại Văn bản</a>
</div>
<div class="shortcutHome">
    <a href="#" onclick="showTheLoaiVanBan()">
    <img src="mos-css/img/halaman.png"><br>Thể loại văn bản</a>
</div>



<div id="divVanBan">
    <div id="smallRight1">
        <h3>
            Văn bản</h3>
        <table style="border: none;font-size: 12px;color: #5b5b5b;width: 100%;margin: 10px 0 10px 0;">
            <tr>
                <td style="border: none;padding: 4px;">
                    Pengunjung online</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
            <tr>
                <td style="border: none;padding: 4px;">
                    Pengunjung hari ini</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
            <tr>
                <td style="border: none;padding: 4px;">
                    Total pengunjung</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
            <tr>
                <td style="border: none;padding: 4px;">
                    Hit hari ini</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
            <tr>
                <td style="border: none;padding: 4px;">
                    Total hit</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
        </table>
    </div>
</div>
<div id="divLoaiVanBan">
    <div id="smallRight1">
        <h3>
            Loại Văn bản</h3>
        <table style="border: none;font-size: 12px;color: #5b5b5b;width: 100%;margin: 10px 0 10px 0;">
            <tr>
                <td style="border: none;padding: 4px;">
                    Pengunjung online</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
            <tr>
                <td style="border: none;padding: 4px;">
                    Pengunjung hari ini</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
            <tr>
                <td style="border: none;padding: 4px;">
                    Total pengunjung</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
            <tr>
                <td style="border: none;padding: 4px;">
                    Hit hari ini</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
            <tr>
                <td style="border: none;padding: 4px;">
                    Total hit</td>
                <td style="border: none;padding: 4px;">
                    <b>12</b></td>
            </tr>
        </table>
    </div>
</div>
<div id="divTheLoaiVanBan">
    <div id="smallRight1">
        <h3>
            Thể Loại Văn bản</h3>
        <table style="border: none;font-size: 12px;color: #5b5b5b;width: 100%;margin: 10px 0 10px 0;">
            <tr>
                <td style="border: none;">Tên thể loại: </td>
                <td style="border: none;"><asp:TextBox ID="txtTen" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="border: none;padding: 4px;"><asp:Button ID="btnThem" runat="server" Text="Thêm mới" OnClientClick="themMoiTheLoai(); return false;" /></td>
                <td style="border: none;padding: 4px;"></td>
            </tr>
        </table>
    </div>
</div>


</asp:Content>

